<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>le-pasta: E:/le-pasta/source/QueryRegexes.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">le-pasta
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('dd/d3c/_query_regexes_8h_source.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">QueryRegexes.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../dd/d3c/_query_regexes_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//Lexical Rules</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a75405d0fa11f1bf15346f61ed092f448">    4</a></span>&#160;<span class="preprocessor">#define DIGIT                                       &quot;[0-9]&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#afba37e724a343796f42f38ebaad80f21">    5</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define LETTER                                      &quot;[a-zA-Z]&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a91d43eadec33c80149f92e5abf5df58c">    6</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define INTEGER                                     DIGIT + std::string(&quot;+&quot;)</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a096a20e68e4e980b6845ad843ec2c3a7">    7</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define IDENT                                       LETTER + std::string(&quot;[a-zA-Z0-9#]*&quot;)</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//Auxiliary Grammar Rules</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#ac5cb72ea0380014b5cb38bbab757e3f7">   10</a></span>&#160;<span class="preprocessor">#define synonym                                     IDENT</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a97806de1c2b3919da15fdae424a30b0b">   11</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define stmtRef                                     synonym + std::string(&quot;|_|&quot;) + INTEGER</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a0d1264b3d3de68ee1c4c0ff2c4bf35e0">   12</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define entRef                                      synonym + std::string(&quot;|_|&quot;) + &quot;[\&quot;]&quot; + IDENT + &quot;[\&quot;]&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a067e19893829386e32b699cb01f5e507">   13</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define design_entity     &quot;(stmt|assign|while|variable|constant|prog_line)&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">//Relationship Grammar Rules</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#aa78dc15033b74e153d641e750ab5ae81">   16</a></span>&#160;<span class="preprocessor">#define Reg_ModifiesS                  std::string(&quot;(Modifies)[\\s]*[(][\\s]*(&quot;) + stmtRef + &quot;)[\\s]*,[\\s]*(&quot; + entRef + &quot;)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a92df1c423dee18294d42890da859fde5">   17</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define Reg_UsesS                                   std::string(&quot;(Uses)[\\s]*[(][\\s]*(&quot;) + stmtRef + &quot;)[\\s]*,[\\s]*(&quot; + entRef + &quot;)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a59331d84d3a094aa3ccd421b3f764bf3">   18</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define Reg_Parent                                  std::string(&quot;(Parent)[\\s]*[(][\\s]*(&quot;) + stmtRef + &quot;)[\\s]*,[\\s]*(&quot; + stmtRef + &quot;)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a188cd08cb6f748e512083eed5027bb15">   19</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define Reg_ParentT                                 std::string(&quot;(Parent[*])[\\s]*[(][\\s]*(&quot;) + stmtRef + &quot;)[\\s]*,[\\s]*(&quot; + stmtRef + &quot;)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a369f0461c0919a942cb304d9719e0be6">   20</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define Reg_Follows                                 std::string(&quot;(Follows)[\\s]*[(][\\s]*(&quot;) + stmtRef + &quot;)[\\s]*,[\\s]*(&quot; + stmtRef + &quot;)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a375061499c8b9219314a7f69a6c269c5">   21</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define Reg_FollowsT                   std::string(&quot;(Follows[*])[\\s]*[(][\\s]*(&quot;) + stmtRef + &quot;)[\\s]*,[\\s]*(&quot; + stmtRef + &quot;)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a19fb4f249fcc87aa7234993d43c48652">   22</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define relRef                                      std::string(&quot;(&quot;) + Reg_ModifiesS + &quot;|&quot; + Reg_UsesS + &quot;|&quot; + Reg_Parent + &quot;|&quot; + Reg_ParentT + &quot;|&quot; + Reg_Follows + &quot;|&quot; + Reg_FollowsT +&quot;)&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">//Grammar Rules for Select Clause</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a4ecf47d4b7842826399a02d16e2bb7f9">   25</a></span>&#160;<span class="preprocessor">#define declaration                    design_entity + std::string(&quot;[\\s]*(&quot;) + synonym + &quot;)([\\s]*,[\\s]*&quot; + synonym + &quot;)*&quot; + &quot;[\\s]*;[\\s]*&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#ad392f8a2c2203a634731d83124896bad">   26</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define select_cl                      std::string(&quot;(&quot;) + declaration + &quot;)*[\\s]*(Select)[\\s]*(&quot; + synonym + &quot;)[\\s]*(&quot; + suchthat_cl &quot;[\\s]*|&quot; + pattern_cl &quot;[\\s]*)*&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a6d42d48a49537881cabe2ea73c2a3614">   27</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define suchthat_cl                    std::string(&quot;(such[\\s]*that)[\\s]*&quot;) + relRef</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#ac0e902e951790711d68cb7d2d22cdbd0">   28</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define pattern_cl                     std::string(&quot;(pattern)[\\s]*(&quot;) + synonym + &quot;)[\\s]*[(][\\s]*(&quot; + entRef + &quot;)[\\s]*,[\\s]*(_[\&quot;]&quot;+synonym+&quot;[\&quot;]_|_)[\\s]*[)]&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment">//Self defined clauses for extracting purposes</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a3c88d50efcb963eb6d27811173e16ffc">   31</a></span>&#160;<span class="preprocessor">#define result_cl                      std::string(&quot;(Select)[\\s]*(&quot;) + synonym + &quot;)&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#afc4cfea8f58548b0ef1683efa3d6cbf3">   32</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define var_literal                    std::string(&quot;[\&quot;]&quot;) + IDENT + &quot;[\&quot;]|[_]&quot; //var_literal is defined as either &quot;x&quot; or _</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#ae1044cf2e92503a426a82f98fd3b4eb8">   33</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define any_value                      std::string(&quot;[_]&quot;)</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="../../dd/d3c/_query_regexes_8h.html#a08310e35e648c2a8160da1a38a54e29a">   34</a></span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define stmt_literal      INTEGER</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li><li class="navelem"><a class="el" href="../../dd/d3c/_query_regexes_8h.html">QueryRegexes.h</a></li>
    <li class="footer">Generated on Thu Apr 18 2013 03:04:53 for le-pasta by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li>
  </ul>
</div>
</body>
</html>
